package com.choudou5.solr.dataimport.config;


import com.choudou5.solr.dataimport.constants.DataImportConstant;

/**
 * 查询参数
 *
 * @author choudou5
 * @create 2017-08-上午 3:53
 **/
public class DIQueryParam {

    private String module;

    private DataImportConstant.ImportType type;

    private String dbGroup;

    public DIQueryParam() {
    }

    public DIQueryParam(String module, DataImportConstant.ImportType type) {
        this.module = module;
        this.type = type;
    }

    public String getModule() {
        return module;
    }

    public DIQueryParam setModule(String module) {
        this.module = module;
        return this;
    }


    public DataImportConstant.ImportType getType() {
        return type;
    }

    public DIQueryParam setType(DataImportConstant.ImportType type) {
        this.type = type;
        return this;
    }


    public String getDbGroup() {
        return dbGroup;
    }

    public DIQueryParam setDbGroup(String dbGroup) {
        this.dbGroup = dbGroup;
        return this;
    }

    @Override
    public String toString() {
        return "QueryParam{" +
                "module='" + module + '\'' +
                ", type=" + type +
                ", dbGroup='" + dbGroup + '\'' +
                '}';
    }
}
